package com.xxh.dataaccess.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.Data;

/**
 * (UserviewHistory)表实体类
 *
 * @author makejava
 * @since 2021-02-09 16:58:50
 */
@SuppressWarnings("serial")
@Data
public class UserviewHistory extends Model<UserviewHistory> {

    @TableId(type= IdType.AUTO)
    private Integer id;
    //视频ID
    private String bv;
    //用户ID
    private Integer uid;
    //浏览时间
    private Date viewTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBv() {
        return bv;
    }

    public void setBv(String bv) {
        this.bv = bv;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Date getViewTime() {
        return viewTime;
    }

    public void setViewTime(Date viewTime) {
        this.viewTime = viewTime;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
